package com.ybkj.daijia.server.service;

import com.ybkj.daijia.page.Page;
import com.ybkj.daijia.server.model.Driver;
import com.ybkj.daijia.server.model.DriverRebateEnchashment;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author Shine
 */
public interface DriverRebateEnchashmentService {

    /**
     * 分页查询司机申请信息
     *
     * @return
     */
    public Page<DriverRebateEnchashment> queryByEmploy(Long employId, String param, Integer page,
        Integer limit);

    /**
     * 保存司机申请信息
     *
     * @return
     */
    public DriverRebateEnchashment insertRecord(DriverRebateEnchashment driverEnchashment);

    /**
     * 根据主键查询司机申请信息
     *
     * @param id
     * @return
     */
    public DriverRebateEnchashment findOne(Long id);

    /**
     * 删除司机申请信息
     */
    public void delete(DriverRebateEnchashment driverEnchashment);


    /**
     * 根据主键更新司机申请信息
     *
     * @return
     */
    public int updateByPrimaryKey(DriverRebateEnchashment driverEnchashment);


    public void audit(DriverRebateEnchashment driverEnchashment, Driver driver, String result);

    /**
     * 查询导出所需的数据
     *
     * @param employId 用户id
     * @param param    查询条件
     * @return 提现记录集合
     */
    public List<DriverRebateEnchashment> listByEmploy(Long employId, String param);

    public void apply(Driver driver, BigDecimal money);
}
